from lib.anki import generate_anki_import_file
from lib.my_tts import gen_audio_by_bytedance
import os
import string

cards = []
snd_txts = []

words = ['try on', 'There is a coat']

for word in words:
    card = {}
    card['front'] = '[sound:' + word + '.mp3]'
    card['back'] = '<font size="10">' + word + '</font>'
    cards.append(card)
generate_anki_import_file(cards, "All::徐韬略::幼儿园::中班下学期::英文单词::分组008", 'output/anki_import_data.txt')

print(snd_txts)

if False:
    for word in words:
        gen_audio_by_bytedance(word, 'output/sound/' + word + '.mp3')